/*
 * Copyright (c) 2023 Huawei Technologies Co., Ltd.
 * openUBMC is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *         http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */

#include <device_tree/interface/NetworkAdapter/LogCollection.h>

MC_MODULE_REFLECT(device_tree, dev::gen::NetworkAdapter_LogCollection,
                  (DumpErrorLog)(DumpLastWordLog)(DumpRunningLog)(DumpBlackBoxLog)
                  ((CollectLogByNcsi, "CollectLogByNcsi"))((CollectLogBySmbus, "CollectLogBySmbus")))

namespace dev::gen {

bool NetworkAdapter_LogCollection::DumpErrorLog(const std::string& file_path) {
    MC_THROW(mc::not_implemented_exception, "DumpErrorLog not implemented");
};

bool NetworkAdapter_LogCollection::DumpLastWordLog(const std::string& file_path) {
    MC_THROW(mc::not_implemented_exception, "DumpLastWordLog not implemented");
};

bool NetworkAdapter_LogCollection::DumpRunningLog(const std::string& file_path) {
    MC_THROW(mc::not_implemented_exception, "DumpRunningLog not implemented");
};

bool NetworkAdapter_LogCollection::DumpBlackBoxLog(const std::string& file_path) {
    MC_THROW(mc::not_implemented_exception, "DumpBlackBoxLog not implemented");
};

bool NetworkAdapter_LogCollection::CollectLogByNcsi(const std::string& log_dir) {
    MC_THROW(mc::not_implemented_exception, "CollectLogByNcsi not implemented");
};

bool NetworkAdapter_LogCollection::CollectLogBySmbus(const std::string& log_dir) {
    MC_THROW(mc::not_implemented_exception, "CollectLogBySmbus not implemented");
};

} // namespace dev::gen
